<template>
  <div>
    <van-nav-bar title="盒马生鲜" left-arrow @click-left="fun"> </van-nav-bar>
    <van-search
      show-action
      label="地址"
      background="#17bcf8"
      placeholder="请输入搜索关键词"
    >
      <template #action>
        <div class="sous">搜索</div>
      </template>
    </van-search>
  </div>
</template>

<script>
import lunbo from "@/components/life/shouye/lunbo.vue";
export default {
  components: {
    lunbo,
  },
  methods: {
    fun() {
      // 编程式方式进行----路由跳转
      this.$router.push("/life");
    },
  },
};
</script>

<style lang="less">
.van-nav-bar {
  background-color: #1369b6;
  color: #fff;
}
.van-nav-bar__title {
  color: #fff;
}
.van-nav-bar .van-icon {
  color: #fff;
}
.sous {
  color: #fff;
}
</style>